package me.pearjelly.model;

import java.io.Serializable;
import java.util.ArrayList;

import edu.uci.ics.crawler4j.crawler.Page;
import edu.uci.ics.crawler4j.url.WebURL;

@SuppressWarnings("serial")
public class PageContext implements
		Serializable {
	private WebURL webURL;
	private String html;
	private String text;
	private String title;
	private byte[] binaryData;
	private ArrayList<WebURL> urls;

	public PageContext() {
	}
	public PageContext(Page page) {
		this.webURL = page.getWebURL();
		this.html = page.getHTML();
		this.text = page.getText();
		this.title = page.getTitle();
		this.binaryData = page.getBinaryData();
	}
	public WebURL getWebURL() {
		return webURL;
	}
	public void setWebURL(WebURL webURL) {
		this.webURL = webURL;
	}
	public String getHtml() {
		return html;
	}
	public void setHtml(String html) {
		this.html = html;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public byte[] getBinaryData() {
		return binaryData;
	}
	public void setBinaryData(byte[] binaryData) {
		this.binaryData = binaryData;
	}
	public ArrayList<WebURL> getUrls() {
		return urls;
	}
	public void setUrls(ArrayList<WebURL> urls) {
		this.urls = urls;
	}
}
